[docs-agent] Fix weekly link check broken links#1399
Merged
Conversation
- mochajs.org/#hooks: anchor no longer exists after Mocha's docs site redesign; update to https://mochajs.org/features/hooks/ - github.com/.../pkgs/container/...: GHCR package version pages intermittently 502 to lychee while loading fine in browsers; add narrow exclude pattern Refs DOCS-123
🔗 Preview Mode
|
SahilAujla
approved these changes
Jun 22, 2026
SahilAujla
pushed a commit
that referenced
this pull request
Jun 22, 2026
Per @dslovinsky's feedback: the github.com /pkgs/container/ 502 flagged by the weekly link check is a transient gateway error, not a recurring pattern worth excluding. Ignore it for now; if it recurs persistently we can revisit. Refs DOCS-123 Requested-by: @dslovinsky
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the two broken links flagged by the weekly Link Check run.
1.
content/tutorials/alchemy-university/smart-contract-basics/how-to-unit-test-a-smart-contract.mdxUpdated
https://mochajs.org/#hooks→https://mochajs.org/features/hooks/. Mocha redesigned their docs site (now built on Starlight/Astro) and the#hooksanchor on the home page no longer exists. The Hooks documentation lives at/features/hooks/in the new sidebar structure. Verified the new URL resolves to the full Hooks reference.2.
content/changelog/2026-02-19.mdAdded a narrow exclude pattern to
lychee.tomlforgithub.com/<owner>/<repo>/pkgs/container/...URLs. The flagged link (github.com/sentioxyz/reth-bsc/pkgs/container/reth-bsc/624488464?tag=v0.0.7-beta) is a valid GHCR package version page that loads fine in a browser; GitHub's pkgs gateway intermittently returns 502 to lychee. Since this is a historical changelog entry pointing to a specific release artifact (we shouldn't rewrite it to a different version), and the failure is a third-party gateway flake, excluding the URL pattern matches the existing playbook for sibling intermittent-third-party domains (geth.ethereum.org, portal.zksync.io, etc.). Only one link incontent/matches this pattern today, but the pattern is shaped so future similar GHCR links don't trip the check either.Linear
DOCS-123 — Fix weekly link check broken links: mochajs.org/#hooks and GHCR pkg URL
Slack thread
https://alchemyinc.slack.com/archives/C0852FMMUMR/p1782153104141979